package com.touni.designpattern.singletonpattern.hungry;

/**
 * @ClassName : HungrySingleton
 * @Description : 饿汉式 易产生垃圾对象
 * @Author : lwq
 * @Date: 2020-10-19 15:24
 */
public class HungrySingleton {

    private static HungrySingleton hungrySingleton = new HungrySingleton();

    private HungrySingleton(){}

    public static HungrySingleton getInstance(){
        return hungrySingleton;
    }

}
